package cn.usian.service.impl;

import cn.usian.dao.UserDao;
import cn.usian.pojo.User;
import cn.usian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public List<User> findAll() {
        return userDao.selectList(null);
    }

    @Override
    public void del(Integer id) {
        userDao.deleteById(id);
    }
}
